package com.iot.ic.common.error;

import org.bson.BasicBSONObject;

public class ComMessage extends BasicBSONObject {
	private static final long	serialVersionUID	= -7131405393369255512L;

	public ComMessage() {
		this.put("error", 0);
	}

	public ComMessage(int no, String description) {
		this.put("error", no);
		this.put("description", description);
	}

	public ComMessage(int no) {
		this.put("error", no);
	}

	public ComMessage(int no, int result) {
		this.put("error", no);
		this.put("result", result);
	}

}
